package list.ittest.Test.B_Controller;

import list.ittest.Test.E_Domain.Student;

import java.util.Scanner;

public class StudentController extends  DemoStudentController{
    //添加学生
    @Override
    public void addStudent() {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入学生学号");
        String id = sc.next();
        System.out.println("请输入学生姓名");
        String name = sc.next();
        System.out.println("请输入学生年龄");
        int age = sc.nextInt();
        System.out.println("请输入学生生日");
        String birthday = sc.next();
        Student stu = new Student(id,name,age,birthday);
        studentService.addStudent(stu);
        System.out.println("添加成功");
    }
}
